package com.prototype.protoType;

/**
 * @author Vhong
 * @version 1.0
 * 测试
 * 原型模式的扩展
 */
public class ProtoTypeShape {
    public static void main(String[] args) {
        ProtoTypeManager pm = new ProtoTypeManager();
        Shape obj1 = (Circle) pm.getShape("圆形");
        obj1.countArea();
        Shape obj2 = (Square) pm.getShape("正方形");
        obj2.countArea();

    }
}
